/*
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Scanner;

class Student {
    String id;
    String name;
    int score;

    public Student(String id, String name, int score) {
        super();
        this.id = id;
        this.name = name;
        this.score = score;
    }

    @Override
    public String toString() {
        return "[" + id + "," + name + "," + score + "]";
    }
}

public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        ArrayList<Student> sList = new ArrayList<Student>();
        createStudenList(sList);
        System.out.println(sList.toString());
        print(sList);
        sc.close();
    }
    public static void createStudenList(ArrayList<Student> list){
        String line = null;
        line = sc.nextLine();
        do{
            String[] lines = line.split(",");
        Student tmp = new Student(lines[0],lines[1],Integer.parseInt(lines[2]));
        list.add(tmp);
        line = sc.nextLine();
        }while(!line.equals("end"));
    }

    public static void print(ArrayList<Student> list) {
        for(int i = 1;i<=list.size();i++){
            System.out.println(i+":"+list.get(i-1).toString());
        }
    }
}
*/